#include <Windows.h>
#include <stdio.h>
class timing {
	public:
		void start(float time);
		bool isEcho;
		timing(bool isEcho);
};
#define reizhi
#ifdef reizhi
timing::timing(bool isEcho=true) {
	this->isEcho=isEcho;
}
void timing::start(float time) {
	time=time*10;
	while(time--) {
		if(isEcho) {
			system("cls");
			printf("还剩%f\n秒",time/10);

		}
		Sleep(100);
	}
	printf("计时结束\n");
}
#endif
